import * as express from 'express'
import systemFunctionController from '../../controllers/SystemFunctionController'

const router = express.Router()

// 获取全部
router.get('/all', systemFunctionController.findAll)

// 更新状态
router.put('/update/state/:id', systemFunctionController.updateState)

// 根据角色、类型查询功能状态
router.get('/search/:role/:type', systemFunctionController.findByRoleAndType)

export default router